<?php

$con = mysqli_connect(
    "127.0.0.1",
    "root",
    "310831",
    'fatie'
);


$sql = 'select count(*) from demo01';


$result = $con->query($sql);

$sum = mysqli_fetch_row($result);
echo ceil($sum[0] / 1);

